package com.pactera.madp.cp.common.enums;

public enum ErrorMessageEnum {

    ERROR_COMPONENT_ACCESS_TOKEN("WX0001","component_access_token获取失败"),
    ERROR_PRE_AUTH_CODE("WX0002","PRE_AUTH_CODE获取失败"),
    ERROR_AUTHORIZER_REFRESH_TOKEN("WX0003","刷新令牌失效，需要重新授权"),
    ERROR_API_AUTHORIZER_TOKEN("WX0005","使用刷新令牌获取授权令牌接口失败");

    private String code;
    private String message;

    ErrorMessageEnum() {
    }

    ErrorMessageEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
